﻿@using Library
@model Ecommerce.Models.ProductImageViewModel

<div class="media" data-src="@Model.Src">
    <div class="media-left">
        <a href="@Model.Src" target="_blank" title="@NOWCulture.GetString("View with original size")">
            <img class="lazy media-object img-thumbnail" width="128" data-src="@Model.Src" alt="@Model.AltText">
        </a>
    </div>
    <div class="media-body">
        <h4 class="media-heading">@Model.AltText @Html.Raw(Model.IsAvatar ? string.Format("<small>({0})</small>", NOWCulture.GetString("Avatar")) : "")</h4>
        <p>@Model.Caption</p>
        <button type="button" class="btn btn-sm btn-primary" data-editor="edit" data-productid="@Model.ProductId" data-imgsrc="@Model.Src"><span class="glyphicon glyphicon-edit"></span>@NOWCulture.GetString("Edit")</button>
        <button type="button" class="btn btn-sm btn-danger" data-editor="remove" data-productid="@Model.ProductId" data-imgsrc="@Model.Src"><span class="glyphicon glyphicon-remove"></span>@NOWCulture.GetString("Remove")</button>
    </div>
</div>
